package com.loodiestest;




import android.app.Activity;
import android.graphics.Color;

import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import android.widget.LinearLayout;
import android.widget.MediaController;
import android.widget.TextView;
import android.widget.VideoView;
import net.loodies.*;

public class BannerActivity extends Activity {

	protected static final String TAG = "HomeActivity";

	Activity Activitythis;




	public void onCreate(Bundle savedInstanceState) {

		Log.v(TAG, "BannerActivity::onCreate");
		super.onCreate(savedInstanceState);

		LinearLayout layout = new LinearLayout(this);
		layout.setOrientation(LinearLayout.VERTICAL);

		TextView text1 = new TextView(this);
		text1.setText("1.you need to write in the onCreate of your activity: \nLoodiesWrapper.AddAd(this,\"SlotID string\");");
		text1.setBackgroundColor(Color.rgb(0, 100, 150));

		TextView text2 = new TextView(this);
		text2.setText("\n\n\n\n\n2.you can add a loodies ad as a View too\nlayout.addView(\nLoodiesWrapper.AddAdAsView(this,\"SlotID string\"\n)");
		text2.setBackgroundColor(Color.rgb(0, 100, 150));

		layout.addView(text1);
		LoodiesWrapper.AddAd(this,LoodiesWrapper.menu_podcast_ad_slotd_id);
		layout.addView(text2);
		//layout.addView(LoodiesWrapper.AddAdAsView(this,LoodiesWrapper.menu_podcast_ad_slotd_id));
		setContentView(layout);
	
	}






}